package com.rgs.se.singleton;

/**
 * @author Ren Gaoshuai
 * @ClassName TestSingleton2
 * @Description 饿汉式 静态代码块
 * @date 2021-09-02 9:42
 **/
public class TestSingleton2 {

    private static TestSingleton2 instance;

    static {
        instance = new TestSingleton2();
    }

    public static TestSingleton2 getInstance() {
        return instance;
    }
}
